home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsIPKCS11Slot.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  188 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPKCS11Slot.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPKCS11Slot_h__
  6. #define __gen_nsIPKCS11Slot_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIPK11Token; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIPKCS11Slot */
  21. #define NS_IPKCS11SLOT_IID_STR "c2d4f296-ee60-11d4-998b-00b0d02354a0"
  22.  
  23. #define NS_IPKCS11SLOT_IID \
  24.   {0xc2d4f296, 0xee60, 0x11d4, \
  25.     { 0x99, 0x8b, 0x00, 0xb0, 0xd0, 0x23, 0x54, 0xa0 }}
  26.  
  27. class NS_NO_VTABLE nsIPKCS11Slot : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPKCS11SLOT_IID)
  31.  
  32.   /* readonly attribute wstring name; */
  33.   NS_IMETHOD GetName(PRUnichar * *aName) = 0;
  34.  
  35.   /* readonly attribute wstring desc; */
  36.   NS_IMETHOD GetDesc(PRUnichar * *aDesc) = 0;
  37.  
  38.   /* readonly attribute wstring manID; */
  39.   NS_IMETHOD GetManID(PRUnichar * *aManID) = 0;
  40.  
  41.   /* readonly attribute wstring HWVersion; */
  42.   NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion) = 0;
  43.  
  44.   /* readonly attribute wstring FWVersion; */
  45.   NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion) = 0;
  46.  
  47.   enum { SLOT_DISABLED = 0U };
  48.  
  49.   enum { SLOT_NOT_PRESENT = 1U };
  50.  
  51.   enum { SLOT_UNINITIALIZED = 2U };
  52.  
  53.   enum { SLOT_NOT_LOGGED_IN = 3U };
  54.  
  55.   enum { SLOT_LOGGED_IN = 4U };
  56.  
  57.   enum { SLOT_READY = 5U };
  58.  
  59.   /* readonly attribute unsigned long status; */
  60.   NS_IMETHOD GetStatus(PRUint32 *aStatus) = 0;
  61.  
  62.   /* nsIPK11Token getToken (); */
  63.   NS_IMETHOD GetToken(nsIPK11Token **_retval) = 0;
  64.  
  65.   /* readonly attribute wstring tokenName; */
  66.   NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) = 0;
  67.  
  68. };
  69.  
  70. /* Use this macro when declaring classes that implement this interface. */
  71. #define NS_DECL_NSIPKCS11SLOT \
  72.   NS_IMETHOD GetName(PRUnichar * *aName); \
  73.   NS_IMETHOD GetDesc(PRUnichar * *aDesc); \
  74.   NS_IMETHOD GetManID(PRUnichar * *aManID); \
  75.   NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion); \
  76.   NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion); \
  77.   NS_IMETHOD GetStatus(PRUint32 *aStatus); \
  78.   NS_IMETHOD GetToken(nsIPK11Token **_retval); \
  79.   NS_IMETHOD GetTokenName(PRUnichar * *aTokenName); 
  80.  
  81. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  82. #define NS_FORWARD_NSIPKCS11SLOT(_to) \
  83.   NS_IMETHOD GetName(PRUnichar * *aName) { return _to GetName(aName); } \
  84.   NS_IMETHOD GetDesc(PRUnichar * *aDesc) { return _to GetDesc(aDesc); } \
  85.   NS_IMETHOD GetManID(PRUnichar * *aManID) { return _to GetManID(aManID); } \
  86.   NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion) { return _to GetHWVersion(aHWVersion); } \
  87.   NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion) { return _to GetFWVersion(aFWVersion); } \
  88.   NS_IMETHOD GetStatus(PRUint32 *aStatus) { return _to GetStatus(aStatus); } \
  89.   NS_IMETHOD GetToken(nsIPK11Token **_retval) { return _to GetToken(_retval); } \
  90.   NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) { return _to GetTokenName(aTokenName); } 
  91.  
  92. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  93. #define NS_FORWARD_SAFE_NSIPKCS11SLOT(_to) \
  94.   NS_IMETHOD GetName(PRUnichar * *aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  95.   NS_IMETHOD GetDesc(PRUnichar * *aDesc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDesc(aDesc); } \
  96.   NS_IMETHOD GetManID(PRUnichar * *aManID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManID(aManID); } \
  97.   NS_IMETHOD GetHWVersion(PRUnichar * *aHWVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHWVersion(aHWVersion); } \
  98.   NS_IMETHOD GetFWVersion(PRUnichar * *aFWVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFWVersion(aFWVersion); } \
  99.   NS_IMETHOD GetStatus(PRUint32 *aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
  100.   NS_IMETHOD GetToken(nsIPK11Token **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetToken(_retval); } \
  101.   NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenName(aTokenName); } 
  102.  
  103. #if 0
  104. /* Use the code below as a template for the implementation class for this interface. */
  105.  
  106. /* Header file */
  107. class nsPKCS11Slot : public nsIPKCS11Slot
  108. {
  109. public:
  110.   NS_DECL_ISUPPORTS
  111.   NS_DECL_NSIPKCS11SLOT
  112.  
  113.   nsPKCS11Slot();
  114.  
  115. private:
  116.   ~nsPKCS11Slot();
  117.  
  118. protected:
  119.   /* additional members */
  120. };
  121.  
  122. /* Implementation file */
  123. NS_IMPL_ISUPPORTS1(nsPKCS11Slot, nsIPKCS11Slot)
  124.  
  125. nsPKCS11Slot::nsPKCS11Slot()
  126. {
  127.   /* member initializers and constructor code */
  128. }
  129.  
  130. nsPKCS11Slot::~nsPKCS11Slot()
  131. {
  132.   /* destructor code */
  133. }
  134.  
  135. /* readonly attribute wstring name; */
  136. NS_IMETHODIMP nsPKCS11Slot::GetName(PRUnichar * *aName)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140.  
  141. /* readonly attribute wstring desc; */
  142. NS_IMETHODIMP nsPKCS11Slot::GetDesc(PRUnichar * *aDesc)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146.  
  147. /* readonly attribute wstring manID; */
  148. NS_IMETHODIMP nsPKCS11Slot::GetManID(PRUnichar * *aManID)
  149. {
  150.     return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152.  
  153. /* readonly attribute wstring HWVersion; */
  154. NS_IMETHODIMP nsPKCS11Slot::GetHWVersion(PRUnichar * *aHWVersion)
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158.  
  159. /* readonly attribute wstring FWVersion; */
  160. NS_IMETHODIMP nsPKCS11Slot::GetFWVersion(PRUnichar * *aFWVersion)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* readonly attribute unsigned long status; */
  166. NS_IMETHODIMP nsPKCS11Slot::GetStatus(PRUint32 *aStatus)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* nsIPK11Token getToken (); */
  172. NS_IMETHODIMP nsPKCS11Slot::GetToken(nsIPK11Token **_retval)
  173. {
  174.     return NS_ERROR_NOT_IMPLEMENTED;
  175. }
  176.  
  177. /* readonly attribute wstring tokenName; */
  178. NS_IMETHODIMP nsPKCS11Slot::GetTokenName(PRUnichar * *aTokenName)
  179. {
  180.     return NS_ERROR_NOT_IMPLEMENTED;
  181. }
  182.  
  183. /* End of implementation class template. */
  184. #endif
  185.  
  186.  
  187. #endif /* __gen_nsIPKCS11Slot_h__ */
  188.